package inner_class;

public class methodClass {
    public static void main(String[] args) {
       fun(20);
    }
    public static void fun(int num){
        //局部变量
        int i=10;
        //方法内部类
        class methodInner{
            void test(){
                System.out.println(i);
            }
        }
        num+=20;
//        i++;
        methodInner methodInner=new methodInner();
        methodInner.test();
    }
}
